<?php

namespace App\Library\Service;

use App\Library\Logic\UserLogic;
use Illuminate\Http\JsonResponse;

class IndexService extends BaseService
{
    public function __construct(UserLogic $logic)
    {
        $this->logic = $logic;
    }

    /**
     * index
     * @return JsonResponse
     */
    public function index(): JsonResponse
    {
        return success($this->logic->newQuery()->get());
    }
}
